<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function getMax() {
        var s = arguments[0]
        for (i = 1; i < arguments.length; i++) {
          if (arguments[i] >= s) {
            s = arguments[i]
          }
        }
        return s
      }
      console.log(getMax(1, 3, 745, 3, 45, 2342, 23))
    </script>
  </body>
</html>
